﻿using AutoMapper;

namespace Himp.Platform.Dc;

public class DcApplicationAutoMapperProfile : Profile
{
    public DcApplicationAutoMapperProfile()
    {
        CreateMap<StdWordDict, StdWordDictDto>();
        CreateMap<StdWordDictCreateDto, StdWordDict>();
        CreateMap<StdWordDictUpdateDto, StdWordDict>();

        CreateMap<HiDiagDict, HiDiagDictDto>();
        CreateMap<ClncDiagDict, ClncDiagDictDto>();
        CreateMap<TcmDiseDict, TcmDiseDictDto>();
        CreateMap<TcmsympDict, TcmsympDictDto>();

        CreateMap<DiagTypeDict, DiagTypeDictDto>();
        CreateMap<DiagTypeDictCreateDto, DiagTypeDict>();
        CreateMap<DiagTypeDictUpdateDto, DiagTypeDict>();

        CreateMap<PubItemType, PubItemTypeDto>();
        CreateMap<PubItemTypeCreateDto, PubItemType>();
        CreateMap<PubItemTypeUpdateDto, PubItemType>();

        CreateMap<ChrgitmType, ChrgitmTypeDto>();
        CreateMap<ChrgitmTypeCreateDto, ChrgitmType>();
        CreateMap<ChrgitmTypeUpdateDto, ChrgitmType>();

        CreateMap<ChrgitmTypeGrp, ChrgitmTypeGrpDto>();
        CreateMap<ChrgitmTypeGrpCreateDto, ChrgitmTypeGrp>();
        CreateMap<ChrgitmTypeGrpUpdateDto, ChrgitmTypeGrp>();

        #region 药品

        CreateMap<DrugType, DrugTypeDto>();
        CreateMap<DrugTypeCreateDto, DrugType>();
        CreateMap<DrugTypeUpdateDto, DrugType>();

        CreateMap<PhamType, PhamTypeDto>();
        CreateMap<PhamTypeCreateDto, PhamType>();
        CreateMap<PhamTypeUpdateDto, PhamType>();

        CreateMap<DrugDosform, DrugDosformDto>();
        CreateMap<DrugDosformCreateDto, DrugDosform>();
        CreateMap<DrugDosformUpdateDto, DrugDosform>();
        
        CreateMap<DrugMedcWay, DrugMedcWayDto>();
        CreateMap<DrugMedcWayCreateDto, DrugMedcWay>();
        CreateMap<DrugMedcWayUpdateDto, DrugMedcWay>();

        #endregion

        #region 处方

        CreateMap<RxUsedFrqu, RxUsedFrquDto>();
        CreateMap<RxUsedFrquCreateDto, RxUsedFrqu>();
        CreateMap<RxUsedFrquUpdateDto, RxUsedFrqu>();

        #endregion
    }
}
